package br.edu.ufc.deti.util;
public class Sigmoid {
	
    public static double sigmoid( double x ) {
    	//return (1/(1+Math.exp(a*(x-c))));
    	return 1/(1+Math.exp(-0.00001*(x)));
    }
    
    public static void main( String[] args ) {
    	//valores do trabalho de referência
    	// a = 0.690  x = [1, 10] c = 7.00
    	//para plotar no gnuplot --> plot 1/(1 + exp((-0.01)*(x)))
		System.out.println( Sigmoid.sigmoid( 5000 ) );
	}
}